﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace backend.Entity
{
    public class Report
    {
        public long Id { get; set; }
        public long ProjectId { get; set; }
        [ForeignKey("ProjectId")]
        public Project Project { get; set; }
        /// <summary>
        /// 报告者
        /// </summary>
        public string UserName { get; set; }
        [ForeignKey("UserName")]
        public User User { get; set; }
        /// <summary>
        /// 报告标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 报告内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 提交时间
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        public DateTime Time { get; set; }
    }
}
